package com.aiit.service.impl;


import com.aiit.dao.PermissionDao;
import com.aiit.pojo.Permission;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Set;

@Service
@Transactional
public class PermissionService {
    @Resource
    private PermissionDao permissionDao;

    public Set<Permission> findPermissionListByUserId(int userId) {
        return permissionDao.findPermissionListByUserId(userId);
    }
}
